import request from '@/utils/request'


// 分页查询
export function findPage(pageNum,pageSize,form) {
  return request({
    url: `/residents/residents/findPage?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'post',
    data: form
  })
}

//动态查询
//住户类型表查询
export function findResidentsTypes() {
  return request({
    url: `/residents/residentsTypes/findAll`,
    method: 'get'
  })
}

//楼栋表查询
export function findBuildingblock() {
  return request({
    url: `/residents/buildingblock/findAll`,
    method: 'get'
  })
}

//单元表查询
export function findUnit() {
  return request({
    url: `/residents/unit/findAll`,
    method: 'get'
  })
}

//楼层表查询
export function findFloor() {
  return request({
    url: `/residents/floor/findAll`,
    method: 'get'
  })
}

//房间表查询
export function findRoom() {
  return request({
    url: `/residents/room/findAll`,
    method: 'get'
  })
}

//住户标签表查询
export function findResidentLabels() {
  return request({
    url: `/residents/residentLabels/findAll`,
    method: 'get'
  })
}

//证件表查询
export function findDocumentTypes() {
  return request({
    url: `/residents/documentTypes/findAll`,
    method: 'get'
  })
}

//停启用app
export function updateAppUsageStatus(row) {
  return request({
    url: `/residents/residents/updateAppUsageStatus`,
    method: 'post',
    data: row,
  })
}

